package binary;

import java.util.Iterator;

public class complementDemo {
    public static void main(String[] args) {
       int max=Integer.MAX_VALUE;
        int min=Integer.MIN_VALUE;
        System.out.println(Integer.toBinaryString(max));
        System.out.println(Integer.toBinaryString(min));
        System.out.println(Integer.toBinaryString(-1));
        int n=-45;
        System.out.println(Integer.toBinaryString(n));
        System.out.println(n);


        String s="132121";
        StringBuffer st=new StringBuffer(s);
        st.reverse();//反转
        System.out.println(st);
        int i=Integer.parseInt(s);
        String sd=String.valueOf(i);
        char c='1';
        int x=(int) c;

    }
}
